<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="me.linczh.bank.bean.AccountBean" %>
<%@ page import="me.linczh.bank.bean.enums.ResultType" %>

<p>
	<%=request.getAttribute("contentpage") %>
</p>
<% if (request.getAttribute("result") != null) {
			ResultType result = (ResultType)request.getAttribute("result");
			if (result != ResultType.SUCCESS) {
 %>
<div class="alert alert-danger">
 <strong>操作失败</strong><br> <%=ResultType.parse(result) %> <a href="viewpage.action?page=account/password" class="alert-link">重新填写</a>
</div>
<%		} else { %>
<div class="alert alert-success">
  <strong>操作成功</strong><br> 修改成功!
</div>
<%		}
	} else { %>
<form action="account.password.action" method="POST" role="form">
	<fieldset>
		<legend>修改密码</legend>
		<div class="form-group">
	    <label for="account">账号</label>
	    <input type="text" class="form-control" id="account" name="account" placeholder="账号">
	  </div>
	  <div class="form-group">
	    <label for="password">原密码</label>
	    <input type="password" class="form-control" id="password" name="password" placeholder="原密码">
	  </div>
	  <div class="form-group">
	    <label for="newpassword">新密码</label>
	    <input type="password" class="form-control" id="newpassword" name="newpassword" placeholder="新密码">
	  </div>
	</fieldset>
	<button type="submit" class="btn btn-default">修改密码</button>
</form>
<% } %>